public class Benchmark {
	

	public static void main(String[] args) throws Exception {
		new Benchmark();
	}
	
	public Benchmark() throws Exception {
		int number = 1;
		int port = 4600;
		for (int i=2; i<6; i++) {
			System.out.println("Running test nr. " + number + " with delivery Guarantee FIFO. Using " + i + " peers and sending 100 messages:");
			Test test1 = new Test(MulticastQueue.DeliveryGuarantee.FIFO, i, 60, false, port);
			long runningTimeFifo = test1.start();
			System.out.println("Time to complete cycle: " + runningTimeFifo + " milliseconds");
			System.out.println();
			number++;
			
			System.out.println("Running test nr. " + number + " with delivery guarantee TOTAL. Using " + i + " peers and sending 100 messages:");
			Test test2 = new Test(MulticastQueue.DeliveryGuarantee.TOTAL, i, 60, false, port);
			long runningTimeTotal = test2.start();
			System.out.println("Time to complete cycle: " + runningTimeTotal + " milliseconds");
			System.out.println();
			number++;
			
			port = port + 10;
		}
		System.out.println("Benchmark completed!!!");
	
	}
}